package xgenerator.ui.swing.model;

import javax.swing.DefaultComboBoxModel;

import xgenerator.constants.ConnectionStrings;

/**
 * <p>
 * Title：数据库JDBC连接字符串model
 * </p>
 * <p>
 * Description：
 * </p>
 * <p>
 * Copyright: Copyright (c) 2012
 * </p>
 * <p>
 * Company: liss
 * </p>
 * @author <a href="mailto:shushanlee@msn.com">liss</a>
 * @version 1.0
 * @see 
 * @since 1.0
 */
public class ConnectionStringComboBoxModel extends DefaultComboBoxModel implements ConnectionStrings {
	/**
	 * Serializable
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * 数据库JDBC连接字符串model
	 * constructor
	 */
	public ConnectionStringComboBoxModel() {
		this.addElement(ORACLE_URL);
		this.addElement(DB2_URL);
		this.addElement(SYBASE_URL);
		this.addElement(SQLSERVER_URL);
		this.addElement(MYSQL_URL);
		this.addElement(INFORMIX_URL);
		this.addElement(POSTGRESQL_URL);
		this.addElement(DERBY_EMBEDDED_URL);
		this.addElement(DERBY_CLIENT_URL);
		this.addElement(SQLITE_URL);
		
		this.addElement(JDBC_ODBC_DATASOURCE_URL);
		this.addElement(JDBC_ODBC_ACCESS_URL);
		this.addElement(JDBC_ODBC_EXCEL_URL);
		this.addElement(JDBC_ODBC_TEXT_URL);
		this.addElement(JDBC_ODBC_DBF_URL);
		this.addElement(JDBC_ODBC_SQLSERVER_URL);
	}
}
